package cn.edu.nit.sys.service;

import cn.edu.nit.sys.entity.Message;
import cn.edu.nit.sys.utils.R;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.scheduling.annotation.Async;

import java.util.List;
import java.util.Map;

/**
 * @Author xiaobai
 * @Date 2022/11/2 20:15
 * @Version 1.0.0
 */
public interface MessageService extends IService<Message> {

    void saveMessage(Message message);

    void updateMessageStatus(Message message);

    R getSysMessageList(Page<Map<String, String>> page, String uid);

    R changeReadStatus(String id);

    List<Map<String, String>> getNoReadMessage(String userId);

    R getNotReadMessage(String id);

    R getMessageList(Page<Map<String, String>> page, String userId1, String userId2);

    R readMessage(String target, String source);
}
